﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetCargosByAreaID')
	BEGIN
		DROP  Procedure  GetCargosByAreaID
	END

GO

CREATE Procedure GetCargosByAreaID

	(
		@idArea int
	)

AS

BEGIN
	SET NOCOUNT ON
	
	SELECT
	[Descripcion],
	[IdArea],
	[IdCargo],
	[IdCargoSuperior],
	[Nombre]
	FROM [Cargo] 
	WHERE [IdArea] = @idArea

	SET NOCOUNT OFF
END

GO


GRANT EXEC ON GetCargosByAreaID TO PUBLIC

GO

